
clear all

#delimit ;
*  PSID DATA CENTER *****************************************************
   JOBID            : 296214                            
   DATA_DOMAIN      : IND                               
   USER_WHERE       : NULL                              
   FILE_TYPE        : All Individuals Data              
   OUTPUT_DATA_TYPE : ASCII                             
   STATEMENTS       : do                                
   CODEBOOK_TYPE    : PDF                               
   N_OF_VARIABLES   : 243                               
   N_OF_OBSERVATIONS: 80806                             
   MAX_REC_LENGTH   : 449                               
   DATE & TIME      : August 5, 2021 @ 18:07:28
*************************************************************************
;

infix
      ER30000              1 - 1           ER30001              2 - 5           ER30002              6 - 8     
      V441                 9 - 9           V542                10 - 10          V791                11 - 11    
      ER30020             12 - 15          ER30021             16 - 17          ER30022             18 - 18    
      V1101               19 - 19          V1109               20 - 20          V1461               21 - 21    
      ER30043             22 - 25          ER30044             26 - 27          ER30045             28 - 28    
      V1801               29 - 29          V1809               30 - 30          V2165               31 - 31    
      ER30067             32 - 35          ER30068             36 - 37          ER30069             38 - 38    
      V2401               39 - 39          V2410               40 - 40          V2791               41 - 41    
      ER30091             42 - 45          ER30092             46 - 47          ER30093             48 - 48    
      V3001               49 - 49          V3010               50 - 50          V3217               51 - 51    
      ER30117             52 - 55          ER30118             56 - 57          ER30119             58 - 58    
      V3401               59 - 59          V3410               60 - 60          V3639               61 - 61    
      ER30138             62 - 65          ER30139             66 - 67          ER30140             68 - 68    
      V3801               69 - 69          V3810               70 - 70          V4114               71 - 71    
      ER30160             72 - 75          ER30161             76 - 77          ER30162             78 - 78    
      V4301               79 - 79          V4310               80 - 80          V4658               81 - 81    
      ER30188             82 - 85          ER30189             86 - 87          ER30190             88 - 88    
      V5201               89 - 89          V5210               90 - 90          V5578               91 - 91    
      ER30217             92 - 95          ER30218             96 - 97          ER30219             98 - 98    
      V5701               99 - 99          V5710              100 - 100         V6127              101 - 101   
      ER30246            102 - 105         ER30247            106 - 107         ER30248            108 - 108   
      V6301              109 - 109         V6310              110 - 110         V6724              111 - 111   
      ER30283            112 - 115         ER30284            116 - 117         ER30285            118 - 118   
      V6901              119 - 119         V6910              120 - 120         V7357              121 - 121   
      ER30313            122 - 125         ER30314            126 - 127         ER30315            128 - 128   
      V7501              129 - 129         V7510              130 - 130         V8009              131 - 131   
      ER30343            132 - 135         ER30344            136 - 137         ER30345            138 - 138   
      V8201              139 - 139         V8210              140 - 140         V8633              141 - 141   
      ER30373            142 - 145         ER30374            146 - 147         ER30375            148 - 148   
      V8801              149 - 149         V8810              150 - 150         V9319              151 - 151   
      ER30399            152 - 155         ER30400            156 - 157         ER30401            158 - 159   
      V10001             160 - 160         V10010             161 - 161         V10966             162 - 162   
      ER30429            163 - 166         ER30430            167 - 168         ER30431            169 - 170   
      V11101             171 - 171         V11112             172 - 172         V11906             173 - 173   
      ER30463            174 - 177         ER30464            178 - 179         ER30465            180 - 181   
      V12501             182 - 182         V12510             183 - 183         V13533             184 - 184   
      ER30498            185 - 188         ER30499            189 - 190         ER30500            191 - 192   
      V13701             193 - 193         V13710             194 - 194         V14580             195 - 195   
      ER30535            196 - 199         ER30536            200 - 201         ER30537            202 - 203   
      V14801             204 - 204         V14810             205 - 205         V16054             206 - 206   
      ER30570            207 - 210         ER30571            211 - 212         ER30572            213 - 214   
      V16301             215 - 215         V16310             216 - 216         V17451             217 - 217   
      ER30606            218 - 221         ER30607            222 - 223         ER30608            224 - 225   
      V17701             226 - 226         V17710             227 - 227         V18782             228 - 228   
      ER30642            229 - 233         ER30643            234 - 235         ER30644            236 - 237   
      V19001             238 - 238         V19010             239 - 239         V20082             240 - 240   
      ER30689            241 - 244         ER30690            245 - 246         ER30691            247 - 248   
      V20301             249 - 249         V20310             250 - 250         V21388             251 - 251   
      ER30733            252 - 255         ER30734            256 - 257         ER30735            258 - 259   
      V21601             260 - 260         V21608             261 - 261         V23245             262 - 262   
      ER30806            263 - 267         ER30807            268 - 269         ER30808            270 - 271   
      ER2001             272 - 272         ER2005A            273 - 273         ER3917             274 - 274   
      ER33101            275 - 279         ER33102            280 - 281         ER33103            282 - 283   
      ER5001             284 - 284         ER5004A            285 - 285         ER6787             286 - 286   
      ER33201            287 - 291         ER33202            292 - 293         ER33203            294 - 295   
      ER7001             296 - 296         ER7004A            297 - 297         ER9033             298 - 298   
      ER33301            299 - 302         ER33302            303 - 304         ER33303            305 - 306   
      ER10001            307 - 307         ER10004A           308 - 308         ER11812            309 - 309   
      ER33401            310 - 314         ER33402            315 - 316         ER33403            317 - 318   
      ER13001            319 - 319         ER13008A           320 - 320         ER15890            321 - 321   
      ER33501            322 - 326         ER33502            327 - 328         ER33503            329 - 330   
      ER17001            331 - 331         ER17007            332 - 332         ER19951            333 - 333   
      ER33601            334 - 337         ER33602            338 - 339         ER33603            340 - 341   
      ER21001            342 - 342         ER21007            343 - 343         ER23388            344 - 344   
      ER33701            345 - 349         ER33702            350 - 351         ER33703            352 - 353   
      ER25001            354 - 354         ER25007            355 - 355         ER27352            356 - 356   
      ER33801            357 - 361         ER33802            362 - 363         ER33803            364 - 365   
      ER36001            366 - 366         ER36007            367 - 367         ER40527            368 - 368   
      ER33901            369 - 373         ER33902            374 - 375         ER33903            376 - 377   
      ER42001            378 - 378         ER42007            379 - 379         ER46504            380 - 380   
      ER34001            381 - 385         ER34002            386 - 387         ER34003            388 - 389   
      ER47301            390 - 390         ER47307            391 - 391         ER51865            392 - 392   
      ER34101            393 - 397         ER34102            398 - 399         ER34103            400 - 401   
      ER53001            402 - 402         ER53007            403 - 403         ER57618            404 - 404   
      ER34201            405 - 409         ER34202            410 - 411         ER34203            412 - 413   
      ER60001            414 - 414         ER60007            415 - 415         ER64769            416 - 416   
      ER34301            417 - 421         ER34302            422 - 423         ER34303            424 - 425   
      ER66001            426 - 426         ER66007            427 - 427         ER70841            428 - 428   
      ER34501            429 - 433         ER34502            434 - 435         ER34503            436 - 437   
      ER72001            438 - 438         ER72007            439 - 439         ER76856            440 - 440   
      ER34701            441 - 445         ER34702            446 - 447         ER34703            448 - 449   
using ./RawData/family_comp.txt, clear 
;
label variable ER30000         "RELEASE NUMBER"                           ;
label variable ER30001         "1968 INTERVIEW NUMBER"                    ;
label variable ER30002         "PERSON NUMBER                         68" ;
label variable V441            "RELEASE NUMBER"                           ;
label variable V542            "CHANGE IN FU COMP"                        ;
label variable V791            "SAME HEAD 68-69?"                         ;
label variable ER30020         "1969 INTERVIEW NUMBER"                    ;
label variable ER30021         "SEQUENCE NUMBER                       69" ;
label variable ER30022         "RELATIONSHIP TO HEAD                  69" ;
label variable V1101           "RELEASE NUMBER"                           ;
label variable V1109           "CHANGE IN FU COMP"                        ;
label variable V1461           "SAME HEAD ?"                              ;
label variable ER30043         "1970 INTERVIEW NUMBER"                    ;
label variable ER30044         "SEQUENCE NUMBER                       70" ;
label variable ER30045         "RELATIONSHIP TO HEAD                  70" ;
label variable V1801           "RELEASE NUMBER"                           ;
label variable V1809           "CHANGE IN FU COMP"                        ;
label variable V2165           "SAME HEAD?"                               ;
label variable ER30067         "1971 INTERVIEW NUMBER"                    ;
label variable ER30068         "SEQUENCE NUMBER                       71" ;
label variable ER30069         "RELATIONSHIP TO HEAD                  71" ;
label variable V2401           "RELEASE NUMBER"                           ;
label variable V2410           "CHANGE IN FU COMP"                        ;
label variable V2791           "SAME HEAD?"                               ;
label variable ER30091         "1972 INTERVIEW NUMBER"                    ;
label variable ER30092         "SEQUENCE NUMBER                       72" ;
label variable ER30093         "RELATIONSHIP TO HEAD                  72" ;
label variable V3001           "RELEASE NUMBER"                           ;
label variable V3010           "FAM COMP CHANGE"                          ;
label variable V3217           "WTR NEW HEAD 72"                          ;
label variable ER30117         "1973 INTERVIEW NUMBER"                    ;
label variable ER30118         "SEQUENCE NUMBER                       73" ;
label variable ER30119         "RELATIONSHIP TO HEAD                  73" ;
label variable V3401           "RELEASE NUMBER"                           ;
label variable V3410           "FAM COMP CHG"                             ;
label variable V3639           "WTR NEW HEAD IN FU"                       ;
label variable ER30138         "1974 INTERVIEW NUMBER"                    ;
label variable ER30139         "SEQUENCE NUMBER                       74" ;
label variable ER30140         "RELATIONSHIP TO HEAD                  74" ;
label variable V3801           "RELEASE NUMBER"                           ;
label variable V3810           "CHANGE IN FU COMP"                        ;
label variable V4114           "WTR NEW HEAD"                             ;
label variable ER30160         "1975 INTERVIEW NUMBER"                    ;
label variable ER30161         "SEQUENCE NUMBER                       75" ;
label variable ER30162         "RELATIONSHIP TO HEAD                  75" ;
label variable V4301           "RELEASE NUMBER"                           ;
label variable V4310           "FAM COMP CHANGE"                          ;
label variable V4658           "NEW HEAD THIS YR      K1"                 ;
label variable ER30188         "1976 INTERVIEW NUMBER"                    ;
label variable ER30189         "SEQUENCE NUMBER                       76" ;
label variable ER30190         "RELATIONSHIP TO HEAD                  76" ;
label variable V5201           "RELEASE NUMBER"                           ;
label variable V5210           "FAM COMP CHNG 1977"                       ;
label variable V5578           "WTR NEW HD            K1"                 ;
label variable ER30217         "1977 INTERVIEW NUMBER"                    ;
label variable ER30218         "SEQUENCE NUMBER                       77" ;
label variable ER30219         "RELATIONSHIP TO HEAD                  77" ;
label variable V5701           "RELEASE NUMBER"                           ;
label variable V5710           "FAMILY COMP CHNG 1978"                    ;
label variable V6127           "K1 WTR NEW HEAD"                          ;
label variable ER30246         "1978 INTERVIEW NUMBER"                    ;
label variable ER30247         "SEQUENCE NUMBER                       78" ;
label variable ER30248         "RELATIONSHIP TO HEAD                  78" ;
label variable V6301           "RELEASE NUMBER"                           ;
label variable V6310           "FAMILY COMP CHNG 1979"                    ;
label variable V6724           "M1 WTR NEW HEAD"                          ;
label variable ER30283         "1979 INTERVIEW NUMBER"                    ;
label variable ER30284         "SEQUENCE NUMBER                       79" ;
label variable ER30285         "RELATIONSHIP TO HEAD                  79" ;
label variable V6901           "RELEASE NUMBER"                           ;
label variable V6910           "FAM COMP CHANGE 1980"                     ;
label variable V7357           "M1 WTR NEW HEAD"                          ;
label variable ER30313         "1980 INTERVIEW NUMBER"                    ;
label variable ER30314         "SEQUENCE NUMBER                       80" ;
label variable ER30315         "RELATIONSHIP TO HEAD                  80" ;
label variable V7501           "RELEASE NUMBER"                           ;
label variable V7510           "FAM COMP CHANGE-1981"                     ;
label variable V8009           "M1 WTR NEW HEAD IN FU"                    ;
label variable ER30343         "1981 INTERVIEW NUMBER"                    ;
label variable ER30344         "SEQUENCE NUMBER                       81" ;
label variable ER30345         "RELATIONSHIP TO HEAD                  81" ;
label variable V8201           "RELEASE NUMBER"                           ;
label variable V8210           "FAM COMP CHANGE-1982"                     ;
label variable V8633           "M1 WTR NEW HEAD IN FU"                    ;
label variable ER30373         "1982 INTERVIEW NUMBER"                    ;
label variable ER30374         "SEQUENCE NUMBER                       82" ;
label variable ER30375         "RELATIONSHIP TO HEAD                  82" ;
label variable V8801           "RELEASE NUMBER"                           ;
label variable V8810           "FAM COMP CHANGE-1983"                     ;
label variable V9319           "M1 WTR NEW HEAD IN FU"                    ;
label variable ER30399         "1983 INTERVIEW NUMBER"                    ;
label variable ER30400         "SEQUENCE NUMBER                       83" ;
label variable ER30401         "RELATIONSHIP TO HEAD                  83" ;
label variable V10001          "RELEASE NUMBER"                           ;
label variable V10010          "FAM COMP CHANGE-1984"                     ;
label variable V10966          "M1 WTR NEW HEAD IN FU"                    ;
label variable ER30429         "1984 INTERVIEW NUMBER"                    ;
label variable ER30430         "SEQUENCE NUMBER                       84" ;
label variable ER30431         "RELATIONSHIP TO HEAD                  84" ;
label variable V11101          "RELEASE NUMBER"                           ;
label variable V11112          "FAM COMP CHANGE       85"                 ;
label variable V11906          "G1 CKPT: WTR NEW HEAD"                    ;
label variable ER30463         "1985 INTERVIEW NUMBER"                    ;
label variable ER30464         "SEQUENCE NUMBER                       85" ;
label variable ER30465         "RELATIONSHIP TO HEAD                  85" ;
label variable V12501          "RELEASE NUMBER"                           ;
label variable V12510          "FAM COMP CHANGE       86"                 ;
label variable V13533          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER30498         "1986 INTERVIEW NUMBER"                    ;
label variable ER30499         "SEQUENCE NUMBER                       86" ;
label variable ER30500         "RELATIONSHIP TO HEAD                  86" ;
label variable V13701          "RELEASE NUMBER"                           ;
label variable V13710          "FAM COMP CHANGE       87"                 ;
label variable V14580          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER30535         "1987 INTERVIEW NUMBER"                    ;
label variable ER30536         "SEQUENCE NUMBER                       87" ;
label variable ER30537         "RELATIONSHIP TO HEAD                  87" ;
label variable V14801          "RELEASE NUMBER"                           ;
label variable V14810          "FAM COMP CHANGE       88"                 ;
label variable V16054          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER30570         "1988 INTERVIEW NUMBER"                    ;
label variable ER30571         "SEQUENCE NUMBER                       88" ;
label variable ER30572         "RELATION TO HEAD                      88" ;
label variable V16301          "RELEASE NUMBER"                           ;
label variable V16310          "FAM COMP CHANGE       89"                 ;
label variable V17451          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER30606         "1989 INTERVIEW NUMBER"                    ;
label variable ER30607         "SEQUENCE NUMBER                       89" ;
label variable ER30608         "RELATION TO HEAD                      89" ;
label variable V17701          "RELEASE NUMBER"                           ;
label variable V17710          "FAM COMP CHANGE       90"                 ;
label variable V18782          "M1 CKPT: WTR NEW HEAD"                    ;
label variable ER30642         "1990 INTERVIEW NUMBER"                    ;
label variable ER30643         "SEQUENCE NUMBER                       90" ;
label variable ER30644         "RELATION TO HEAD                      90" ;
label variable V19001          "RELEASE NUMBER"                           ;
label variable V19010          "FAM COMP CHANGE       91"                 ;
label variable V20082          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER30689         "1991 INTERVIEW NUMBER"                    ;
label variable ER30690         "SEQUENCE NUMBER                       91" ;
label variable ER30691         "RELATION TO HEAD                      91" ;
label variable V20301          "RELEASE NUMBER"                           ;
label variable V20310          "FAM COMP CHANGE       92"                 ;
label variable V21388          "M1 CKPT: WTR NEW HEAD"                    ;
label variable ER30733         "1992 INTERVIEW NUMBER"                    ;
label variable ER30734         "SEQUENCE NUMBER                       92" ;
label variable ER30735         "RELATION TO HEAD                      92" ;
label variable V21601          "RELEASE NUMBER"                           ;
label variable V21608          "1993 FAMILY COMPOSITION CHANGE"           ;
label variable V23245          "L1 CKPT: WTR NEW HEAD IN 1993"            ;
label variable ER30806         "1993 INTERVIEW NUMBER"                    ;
label variable ER30807         "SEQUENCE NUMBER                       93" ;
label variable ER30808         "RELATION TO HEAD                      93" ;
label variable ER2001          "RELEASE NUMBER"                           ;
label variable ER2005A         "FAMILY COMPOSITION CHANGE"                ;
label variable ER3917          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33101         "1994 INTERVIEW NUMBER"                    ;
label variable ER33102         "SEQUENCE NUMBER                       94" ;
label variable ER33103         "RELATION TO HEAD                      94" ;
label variable ER5001          "RELEASE NUMBER"                           ;
label variable ER5004A         "FAMILY COMPOSITION CHANGE"                ;
label variable ER6787          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33201         "1995 INTERVIEW NUMBER"                    ;
label variable ER33202         "SEQUENCE NUMBER                       95" ;
label variable ER33203         "RELATION TO HEAD                      95" ;
label variable ER7001          "RELEASE NUMBER"                           ;
label variable ER7004A         "FAMILY COMPOSITION CHANGE"                ;
label variable ER9033          "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33301         "1996 INTERVIEW NUMBER"                    ;
label variable ER33302         "SEQUENCE NUMBER                       96" ;
label variable ER33303         "RELATION TO HEAD                      96" ;
label variable ER10001         "RELEASE NUMBER"                           ;
label variable ER10004A        "FAMILY COMPOSITION CHANGE"                ;
label variable ER11812         "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33401         "1997 INTERVIEW NUMBER"                    ;
label variable ER33402         "SEQUENCE NUMBER                       97" ;
label variable ER33403         "RELATION TO HEAD                      97" ;
label variable ER13001         "RELEASE NUMBER"                           ;
label variable ER13008A        "FAMILY COMPOSITION CHANGE"                ;
label variable ER15890         "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33501         "1999 INTERVIEW NUMBER"                    ;
label variable ER33502         "SEQUENCE NUMBER                       99" ;
label variable ER33503         "RELATION TO HEAD                      99" ;
label variable ER17001         "RELEASE NUMBER"                           ;
label variable ER17007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER19951         "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33601         "2001 INTERVIEW NUMBER"                    ;
label variable ER33602         "SEQUENCE NUMBER                       01" ;
label variable ER33603         "RELATION TO HEAD                      01" ;
label variable ER21001         "RELEASE NUMBER"                           ;
label variable ER21007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER23388         "L1 CKPT: WTR NEW HEAD"                    ;
label variable ER33701         "2003 INTERVIEW NUMBER"                    ;
label variable ER33702         "SEQUENCE NUMBER                       03" ;
label variable ER33703         "RELATION TO HEAD                      03" ;
label variable ER25001         "RELEASE NUMBER"                           ;
label variable ER25007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER27352         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER33801         "2005 INTERVIEW NUMBER"                    ;
label variable ER33802         "SEQUENCE NUMBER                       05" ;
label variable ER33803         "RELATION TO HEAD                      05" ;
label variable ER36001         "RELEASE NUMBER"                           ;
label variable ER36007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER40527         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER33901         "2007 INTERVIEW NUMBER"                    ;
label variable ER33902         "SEQUENCE NUMBER                       07" ;
label variable ER33903         "RELATION TO HEAD                      07" ;
label variable ER42001         "RELEASE NUMBER"                           ;
label variable ER42007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER46504         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER34001         "2009 INTERVIEW NUMBER"                    ;
label variable ER34002         "SEQUENCE NUMBER                       09" ;
label variable ER34003         "RELATION TO HEAD                      09" ;
label variable ER47301         "RELEASE NUMBER"                           ;
label variable ER47307         "FAMILY COMPOSITION CHANGE"                ;
label variable ER51865         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER34101         "2011 INTERVIEW NUMBER"                    ;
label variable ER34102         "SEQUENCE NUMBER                       11" ;
label variable ER34103         "RELATION TO HEAD                      11" ;
label variable ER53001         "RELEASE NUMBER"                           ;
label variable ER53007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER57618         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER34201         "2013 INTERVIEW NUMBER"                    ;
label variable ER34202         "SEQUENCE NUMBER                       13" ;
label variable ER34203         "RELATION TO HEAD                      13" ;
label variable ER60001         "RELEASE NUMBER"                           ;
label variable ER60007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER64769         "L1 CKPT: WTR NEW HEAD IN FU"              ;
label variable ER34301         "2015 INTERVIEW NUMBER"                    ;
label variable ER34302         "SEQUENCE NUMBER                       15" ;
label variable ER34303         "RELATION TO HEAD                      15" ;
label variable ER66001         "RELEASE NUMBER"                           ;
label variable ER66007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER70841         "L1 CKPT: WTR NEW REFERENCE PERSON IN FU"  ;
label variable ER34501         "2017 INTERVIEW NUMBER"                    ;
label variable ER34502         "SEQUENCE NUMBER                       17" ;
label variable ER34503         "RELATION TO REFERENCE PERSON          17" ;
label variable ER72001         "RELEASE NUMBER"                           ;
label variable ER72007         "FAMILY COMPOSITION CHANGE"                ;
label variable ER76856         "L1 CKPT: WTR NEW REFERENCE PERSON IN FU"  ;
label variable ER34701         "2019 INTERVIEW NUMBER"                    ;
label variable ER34702         "SEQUENCE NUMBER                       19" ;
label variable ER34703         "RELATION TO REFERENCE PERSON          19" ;



do ./RawData/family_comp_formats.do ;
#delimit cr


rename ER10004A family_comp_1997
rename ER13008A family_comp_1999
rename ER17007 family_comp_2001
rename ER21007 family_comp_2003
rename ER25007 family_comp_2005
rename ER36007 family_comp_2007
rename ER42007 family_comp_2009
rename ER47307 family_comp_2011
rename ER53007 family_comp_2013
rename ER60007 family_comp_2015

rename ER11812 new_head_1997
rename ER15890 new_head_1999 
rename ER19951 new_head_2001 
rename ER23388 new_head_2003 
rename ER27352 new_head_2005 
rename ER40527 new_head_2007 
rename ER46504 new_head_2009 
rename ER51865 new_head_2011 
rename ER57618 new_head_2013 
rename ER64769 new_head_2015 


// CREATE SON_ID, KEEP PERTINENT VARS, SAVE
	ren ER30001 famid
	ren ER30002 personnumber

	gen son_id = famid*1000 + personnumber
	label var son_id "Child 1968 ID"
	duplicates report son_id //no dups
	
	keep son_id famid personnumber new_head* family_comp_*
		
	sort son_id 
	compress
	save ./RawData/fam_change_info, replace
